<include file="public@header"/>
</head>
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--页面主要内容-->
        <main class="lyear-layout-content">
          
            <div class="container-fluid">
            
                <div class="row">
                   <div class="col-md-12">
                        <div class="card">
                            <ul class="nav nav-tabs">
                                <li class="active"><a>{:lang('USER_OAUTHADMIN_INDEX')}</a></li>
                            </ul>
                            <div class="card-body">
                                <form method="post" class="js-ajax-form margin-top-20">
                                    <div class="table-responsive">
                                        <table class="table table-hover" >
                                            <thead>
                                            <tr>
                                                <th>ID</th>
                                                <th>{:lang('USER_FROM')}</th>
                                                <th>{:lang('AVATAR')}</th>
                                                <th>{:lang('BINGDING_ACCOUNT')}</th>
                                                <th>{:lang('FIRST_LOGIN_TIME')}</th>
                                                <th>{:lang('LAST_LOGIN_TIME')}</th>
                                                <th>{:lang('LAST_LOGIN_IP')}</th>
                                                <th>{:lang('LOGIN_TIMES')}</th>
                                                <th align="center">{:lang('ACTIONS')}</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="lists" item="vo">
                                                <tr>
                                                    <td>{$vo.id}</td>
                                                    <td>{$vo.third_party}</td>
                                                    <td><img width="25" height="25" src="{$vo.avatar}"/></td>
                                                    <td>{$vo.user_nickname}</td>
                                                    <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
                                                    <td>{:date('Y-m-d H:i:s',$vo['last_login_time'])}</td>
                                                    <td>{$vo.last_login_ip}</td>
                                                    <td>{$vo.login_times}</td>
                                                    <td>
                                                        <a class="btn btn-xs btn-danger js-ajax-delete"
                                                           href="{:url('adminOauth/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                                                    </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                        </table>
                                    </div>
                                    <ul class="pagination">{$page}</ul>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>
<script src="__TMPL__/public/assets/js/admin.js"></script>
</body>
</html>